# 共有属性

class Animal():
    x = 10
    def test(self):
        print(self.x)
        print(Animal.x)

class Dog(Animal):
    def test2(self):
        print(self.x)
        print(Dog.x)
        pass
    pass


a = Animal()
a.test()

dog = Dog()
dog.test2()

print(Animal.x)
print(dog.x)

a = 666

